home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 8_6.lha / 8_6 / stream.h < prev    next >
Text File  |  1993-08-08  |  857b  |  37 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / Exercise 8.6
  6. / <streambuf.h>
  7. / Implementation of stream I/O
  8. / using the standard I/O functions.
  9. ifndef STREAM_H
  10. define STREAM_H
  11.  
  12. define istream xistream    /* DELETE */
  13. define ostream xostream    /* DELETE */
  14. define filebuf xfilebuf    /* DELETE */
  15. define streambuf xstreambuf    /* DELETE */
  16. define cout xcout        /* DELETE */
  17. define cin xcin        /* DELETE */
  18. define cerr xcerr        /* DELETE */
  19.  
  20. lass istream;
  21. lass ostream;
  22. / class common;
  23.  
  24. num state_value { _good=0, _eof=1, _fail=2, _bad=4 };
  25. num open_mode { input=0, output=1, append=2 };
  26. truct whitespace { };
  27.  
  28. include <stdio.h>
  29. include <streambuf.h>
  30. include <filebuf.h>
  31. include <ostream.h>
  32. include <istream.h>
  33.  
  34. xtern ostream cout, cerr;
  35. xtern istream cin;
  36. endif /* STREAM_H */
  37.